function isValid1(form1)
{
      var user = form1.UserId;
      var pwd = form1.Password;  
      
      if(check(user) && check(pwd))
          {
                  return true;
          }
      else
          {
                  return false;
          }
}
function check(cmd)
{
	if(cmd.value == "")
	{
		alert(cmd.name + "  " + "Field Missed");
		cmd.focus();
		return false;
	}
	return true;
}